home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / pkunexap.zip / Readme.txt < prev    next >
Text File  |  1996-08-01  |  3KB  |  76 lines

  1. PKUNZIP from VB4 V2
  2. *******************
  3. *1996 CB Unlimited*
  4. *******************
  5.  
  6. This sample code is a improvement on my original uploading
  7. It allows you to control PKUNZIP, and therefore unzip files, from VB4
  8.  
  9. Unlike the previous upload that couldn't close the window when the zipping was finished, this example can.
  10.  
  11. There are two important functions in the bas module:
  12.     ShellAndClose(CommandLine)    'Use this to shell to your dos program
  13.     FindWindowLike            'This is called by ShellAndClose to find                     any windows with "Finished" in their title
  14.                     See KB article for more uses
  15.  
  16. This example uses the fact that when a dos box in Windows 95 has finished the title changes to "Finished - ....".  I think this probably limits this example to Win95 only, Sorry.
  17.  
  18. This code was written as a test for another of my projects ( a C&C savegame organizer)  and at the moment it will extract the files from a zip file and then search for files that are relevant to playing C&C
  19.  
  20. Chris Beach
  21. 100436.172@compuserve.com
  22.  
  23. INCLUDED FILES
  24. README.TXT        'This file
  25. PROGLIST.TXT        'List of my other releases or upcoming programs
  26. PKUNZIP.PIF        'You can alter this to make the shelling suit your needs
  27. UNZIP.BAS        'Include this with any project you want to shell from
  28. UNZIP.FRM/FRX        'Test form files 
  29. ZIP Testing.VBP        'Test project File
  30. ZIP Testing.EXE        'Compile project
  31.  
  32.  
  33. LEGAL AND OTHER STUFF
  34. A lot of this code is based on code and material in the Microsoft KB help files.
  35. I have adapted, fiddled, altered, and generaly played with the information in the files until I got the solution to my problem.
  36.  
  37. Visual Basic, Windows 95 are trademarks of Microsoft Corp.
  38. The FindWindowLike function is also copyright of somebody at Microsoft
  39. PKUNZIP and PKZIP are copyrights of PKWare
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. PKUNZIP Command Line Switches for reference
  51.  
  52. Usage:  PKUNZIP [options] zipfile [@list] [files...]
  53.  
  54. -c[m]                 extract files to Console [with More]
  55. -d                    restore/create Directory structure stored in .ZIP file
  56. -e[c|d|e|n|p|r|s]     Extract files.  Sort by [CRC | Date | Extension | Name
  57.                   | Percentage | Reverse | Size]
  58. -f                    Freshen files in destination directory
  59. -j|J<h,r,s>           mask|don't mask <Hidden/System/Readonly> files (def.=jhrs)
  60. -n                    extract only Newer files
  61. -o                    Overwrite previously existing files
  62. -p[a/b][c][#]         extract to Printer [Asc mode,Bin mode,Com port] [port #]
  63. -q                    Enable ANSI comments
  64. -s[pwd]               Decrypt with password [If no pwd is given, prompt for pwd]
  65. -t                    Test .ZIP file integrity
  66. -v[b][r][m][t]        View .ZIP [Brief][Reverse][More][Technical] sort by [CRC|
  67.   [c,d,e,n,o,p,s]     Date|Extension|Name|natural Order(default)|Percentage|Size]
  68. -x<filespec>          eXclude file(s) from extraction
  69. -$                    Restore volume label on destination drive
  70. -@listfile            Generate list file
  71. -3              Disable 32-bit instruction usage on 80386 or higher CPU's
  72. -^              Echo the command line
  73. -+              Disable Expanded Memory (EMS) usage
  74. --              Disable UMB/HMA Memory (XMS) usage
  75. -)              Disable 32 bit DPMI usage
  76.